/* 全局样式 */
:root {
    --primary-color: #4a90e2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --dark-color: #343a40;
    --light-bg: #f8f9fa;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--light-bg);
}

/* 侧边栏样式 */
.sidebar {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 2px 0 10px rgba(0,0,0,0.1);
}

.sidebar .nav-link {
    color: rgba(255,255,255,0.8);
    padding: 15px 20px;
    margin: 5px 15px;
    border-radius: 8px;
    transition: all 0.3s;
}

.sidebar .nav-link:hover {
    color: #fff;
    background-color: rgba(255,255,255,0.1);
    transform: translateX(5px);
}

.sidebar .nav-link.active {
    color: #fff;
    background-color: rgba(255,255,255,0.2);
}

.sidebar .nav-link i {
    margin-right: 10px;
    font-size: 1.2em;
}

/* 主内容区域 */
.main-content {
    padding: 30px;
}

.page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--primary-color);
}

/* 卡片样式 */
.custom-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.custom-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

/* 可点击卡片样式 */
.clickable-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.clickable-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.2);
}

.clickable-card:active {
    transform: translateY(-3px);
}

/* 按钮样式 */
.btn-custom {
    border-radius: 8px;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s;
}

.btn-custom:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* 优先级标签 */
.priority-high {
    background-color: var(--danger-color);
    color: white;
}

.priority-medium {
    background-color: var(--warning-color);
    color: white;
}

.priority-low {
    background-color: var(--success-color);
    color: white;
}

/* 统计卡片 */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.stats-card h3 {
    font-size: 2.5em;
    margin-bottom: 5px;
}

.stats-card p {
    opacity: 0.9;
    margin: 0;
}

/* 表单样式 */
.form-control, .form-select {
    border-radius: 8px;
    border: 1px solid #dee2e6;
    padding: 10px 15px;
}

.form-control:focus, .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 226, 0.25);
}

/* 任务列表样式 */
.task-item {
    padding: 15px;
    margin-bottom: 10px;
    background: white;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
    transition: all 0.3s;
}

.task-item:hover {
    box-shadow: 0 3px 12px rgba(0,0,0,0.1);
}

.task-item.completed {
    opacity: 0.6;
    text-decoration: line-through;
}

/* 日历样式 */
.calendar-day {
    min-height: 100px;
    border: 1px solid #dee2e6;
    padding: 10px;
    cursor: pointer;
    transition: all 0.3s;
}

.calendar-day:hover {
    background-color: #f0f0f0;
}

.calendar-event {
    padding: 5px;
    margin: 2px 0;
    border-radius: 4px;
    font-size: 0.85em;
    background-color: var(--primary-color);
    color: white;
}

/* 进度条样式 */
.progress-custom {
    height: 25px;
    border-radius: 12px;
}

/* 图标选择按钮样式 */
.icon-selector {
    position: relative;
    transition: all 0.3s ease;
}

.icon-selector.selected {
    background-color: var(--primary-color) !important;
    color: white !important;
    border-color: var(--primary-color) !important;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.icon-selector:hover {
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 颜色选择按钮样式 */
.color-selector {
    position: relative;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    border-radius: 8px;
}

.color-selector.selected {
    border-color: #333 !important;
    transform: scale(1.15);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.color-selector.selected::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    text-shadow: 0 0 3px rgba(0, 0, 0, 0.5);
}

.color-selector:hover {
    transform: scale(1.1);
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.25);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        position: fixed;
        z-index: 1000;
        width: 250px;
        transform: translateX(-250px);
        transition: transform 0.3s;
    }
    
    .sidebar.show {
        transform: translateX(0);
    }
    
    .main-content {
        padding: 15px;
    }
}

